package com.item.springJdbc;

import com.item.springJdbc.dao.EmployeeDao;
import com.item.springJdbc.entity.Employee;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class JdbcSpringApplication {
    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
        EmployeeDao employeeDao=context.getBean("employeeDao",EmployeeDao.class);
        Employee employee=employeeDao.findById(3308);

    }
}
